﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication3
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        string username;
        string password;
        protected void Page_Load(object sender, EventArgs e)
        {
            string Method = Request.HttpMethod;
            if (Method == "Post")
            {
                username = Request.QueryString["UserName"];
                password = Request.QueryString["Password"];
            }
            else if (Method == "Get")
            {
                username = Request.Params["UserName"];
                password = Request.Params["Password"];
            }

            Response.Write($"<h1> 欢迎你，{username}，你的密码是：{password} </h1>");
        }
    }
}